package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamMapper;
import com.ruoyi.system.domain.Exam;
import com.ruoyi.system.service.IExamService;

/**
 * 考试表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-20
 */
@Service
public class ExamServiceImpl implements IExamService 
{
    @Autowired
    private ExamMapper examMapper;

    /**
     * 查询考试表
     * 
     * @param examId 考试表主键
     * @return 考试表
     */
    @Override
    public Exam selectExamByExamId(Long examId)
    {
        return examMapper.selectExamByExamId(examId);
    }

    /**
     * 查询考试表列表
     * 
     * @param exam 考试表
     * @return 考试表
     */
    @Override
    public List<Exam> selectExamList(Exam exam)
    {
        return examMapper.selectExamList(exam);
    }

    /**
     * 新增考试表
     * 
     * @param exam 考试表
     * @return 结果
     */
    @Override
    public int insertExam(Exam exam)
    {
        return examMapper.insertExam(exam);
    }

    /**
     * 修改考试表
     * 
     * @param exam 考试表
     * @return 结果
     */
    @Override
    public int updateExam(Exam exam)
    {
        return examMapper.updateExam(exam);
    }

    /**
     * 批量删除考试表
     * 
     * @param examIds 需要删除的考试表主键
     * @return 结果
     */
    @Override
    public int deleteExamByExamIds(Long[] examIds)
    {
        return examMapper.deleteExamByExamIds(examIds);
    }

    /**
     * 删除考试表信息
     * 
     * @param examId 考试表主键
     * @return 结果
     */
    @Override
    public int deleteExamByExamId(Long examId)
    {
        return examMapper.deleteExamByExamId(examId);
    }
}
